home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / gutil / locv.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-02-08  |  505 b   |  28 lines

  1. # include    <sccs.h>
  2. # include    <useful.h>
  3.  
  4. SCCSID(@(#)locv.c    8.2    (Ingres)    2/8/85)
  5.  
  6. /*
  7. ** locv
  8. **    Convert a long integer into a string.
  9. **
  10. ** Notes:
  11. **    This is a replacement for the locv routine that was
  12. **    originally written in assembler. I am dropping a lot
  13. **    of the general purpose stuff, and basically replacing
  14. **    it with a sprintf for ease.
  15. **
  16. ** Returns
  17. **    A string representation of a long
  18. */
  19. char    *
  20. locv(i)
  21. long    i;
  22. {
  23.     static    char    buf[LONG_BUFSZ];
  24.  
  25.     sprintf(buf,"%ld",i);
  26.     return (buf);
  27. }/* locv */
  28.